package com.unicom.mec.market.remote;

import com.unicom.mec.market.common.ResultBean;
import com.unicom.mec.market.vo.DictVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name= "base")
public interface BaseRemote {

    @ApiOperation(value = "查询字典项", httpMethod = "GET")
    @GetMapping(value = "/dict/")
    ResultBean<List<DictVo>> findDict(@ApiParam(value = "字典KEY") @RequestParam(value = "dictKey") String dictKey,
                                @ApiParam(value = "字典值集合") @RequestParam(value = "values", required = false) List<String> values);

}
